#include <stdio.h>
#include <string.h>
#define LENGTH 5 

// 使用memcpy()复制数组
int main(){
    int arr_1[LENGTH] = {1, 2, 3, 4, 5};
    int arr_2[LENGTH];

    memcpy(arr_2, arr_1, sizeof(arr_1[0]) * LENGTH );

    for(int i = 0; i < LENGTH; i++){
        printf("arr_1:%d\n", arr_1[i]);
    }
    for(int i = 0; i < LENGTH; i++){
        printf("arr_2:%d\n", arr_2[i]);
    }

    return 0;
}